package com.qf.elasticsearch.index;

import org.elasticsearch.action.admin.indices.create.CreateIndexRequest;

import java.io.IOException;

/**
 * create by 郑大仙丶
 * 2019/11/21 0:22
 */
public interface IndexService {

    //1. 创建索引
    void createIndex(String index, CreateIndexRequest request) throws IOException;
    //2. 删除索引
    void deleteIndex(String index) throws IOException;
    //3. 查看索引是否存在
    boolean existsIndex(String index) throws IOException;


}
